//
//  GetAndSetViewController.swift
//  SwiftDemo
//
//  Created by Jason on 15/6/3.
//  Copyright (c) 2015年 Jason Jiang. All rights reserved.
//

//这个类适用于实验set和get方法

import UIKit

class GetAndSetViewController: UIViewController {
    
    var str : NSString!{

        
        willSet{
            
            
        }
        
        didSet{
            
            if(str == "jhy"){
                
                
                NSLog("the value is %@", str)
            }
        }

    }
    

    override func viewDidLoad() {
        super.viewDidLoad()

        // Do any additional setup after loading the view.
        self.title = "GetAndSet";
        
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }
    

    /*
    // MARK: - Navigation

    // In a storyboard-based application, you will often want to do a little preparation before navigation
    override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) {
        // Get the new view controller using segue.destinationViewController.
        // Pass the selected object to the new view controller.
    }
    */

}
